

#ifndef _LOGGER_H__
#define _LOGGER_H__

#include "LoggerAPI.hpp"

NAMESPACE_BEGIN(NSLogger)

enum LType {
	LOGERROR = 0,
	LOGWARNING = 1,
	LOGSUCCESS = 2
};


class LOGGERAPI Logger :public QObject {
	Q_OBJECT
	SIGNALDEC(Logger, QObject)
protected:
	void Initialize();
	void Finalize();

public:
	void log(QString log, LType type = LOGSUCCESS);

signals:
	void putLogSignal(QString log, int type);

private:

};

NAMESPACE_END

#endif // !_LOGGER_H__